from sdk import Sdk

def test_douban():
    url = 'https://movie.douban.com/j/search_subjects'
    query_param = {
        "type": "movie",
        "tag": "最新",
        "page_limit": 50,
        "page_start": 0
    }
    sdk = Sdk()
    r = sdk.handle_get(url, params=query_param)
    print(r.status_code)
    print(r.json())

    assert r.status_code == 200
    assert len(r.json()['subjects']) == 50